# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=droopescan
pkgver=1.45.1
pkgrel=8
groups=('blackarch' 'blackarch-webapp' 'blackarch-scanner')
pkgdesc='A plugin-based scanner that aids security researchers in identifying issues with several CMSs, mainly Drupal & Silverstripe.'
arch=('any')
url='https://github.com/droope/droopescan'
license=('AGPL-3.0-only')
depends=('python' 'python-cement' 'python-requests' 'python-pystache'
         'python-mock' 'python-lxml' 'python-nose' 'python-beautifulsoup4'
         'python-simplejson' 'python-twisted' 'python-dateutil')
makedepends=('git')
source=("https://github.com/droope/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('b1eb2f2573754280f2d249efbc72d86d63f416d5e730174432be84ee60957178a8bb247033e3048148dafa1c11c42f5bf31a5ea7bfc0ca3096522aef19e45fe0')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md CHANGELOG
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

